<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="applicable-device" content="mobile">
	<title>搜索</title>
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" href="css/reset.css">
	<link rel="stylesheet" href="css/font-awesome.min.css">
	<link rel="stylesheet" type="text/css" href="css/search.css">
	<script type="text/javascript" src="js/zepto.min.js"></script>
</head>
<body>
	<div class="container">
		<!-- 搜索框开始 -->
		<div class="search">
			<form action="index.html">
				<input type="text" placeholder="请输入关键字" name="keyword">
				<i class="fa fa-search"></i>
			</form>
			<span>取消</span>
		</div>
		<!-- 搜索框结束 -->


		<!-- 历史搜索 -->
		<div class="history">
			<div class="history_main">
				<h1>历史搜索</h1>
				<span>鞋子</span>
				<span>毛巾毯</span>
				<span>衣架</span>
			</div>
		</div>
		<!-- 历史搜索结束 -->

		<div class="clear_history">
			<span  class="cl_his">清除历史记录</span>
		</div>
	</div>

	<script type="text/javascript">
		$(function(){
			$(".history span").click(function(){
				$(".search input").val($(this).text())/*.parent().submit()*/;
			});

			$(".clear_history").click(function(){
				$(".history").hide();
				$(this).hide();
			});

			$(".fa-search").click(function(){
				$(this).parent().submit();
			});

			$(".search span").click(function(){
				window.history.back(-1); 
			});
		});
	</script>
</body>
</html>